package com.mask.im.sdk.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 消息数据传输对象
 *
 * @author jian
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class IMPushMessage<T> implements Serializable {

    private static final long serialVersionUID = 1L;
    // 发送者ID
    private Long senderId;
    // 接收者ID
    private Long receiverId;
    // 群组接收者ids
    private List<Long> receiversId;
    //群组id
    private Long groupId;
    // 消息类型('FRIEND':好友私聊,'GROUP':群组聊天)
    private String pushType;
    // 消息内容
    private T content;
}
    